import express from 'express';
import { login, register, getVerifyCode } from '../controllers/authController.js';

const router = express.Router();

// 获取验证码
router.get('/verify-code', getVerifyCode);

// 用户注册
router.post('/register', register);

// 用户登录
router.post('/login', login);

export default router;